<? 
	session_start();
	require("Admin/connect.php");
	$mal=$_REQUEST["mal"];
	$maph=$_REQUEST["phuhuynhid"];
	$result=mysql_query("select * from phuhuynh where maph='{$maph}'");		
	$r=mysql_fetch_array($result);
	$mahs=$r["mahs"];
	$masll=$_REQUEST["sllid"];
	$noidung=$_POST["noidung"];	
	$ngay=date("Y-m-d");							
	$sql="insert into ykienphuhuynh(masll,maph,noidung,ngay) values('{$masll}','{$maph}','{$noidung}','{$ngay}')";	
	mysql_query("$sql") or die("Error!");
	mysql_close();				
	header("Location:solienlac.php?mahs=$mahs&mal=$mal");	
?>